#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>
#include"labyrinthe.h"
#include"ncursus.h"


int main ()
{

/*
labyrinthe Laby;

int dimx=3, dimy=3;



genererLabyrinthe(&Laby,&dimx, &dimy );



afficheLabyrinthe(&Laby,&dimx,&dimy);
*/
WINDOW *win;
int c;
bool ok;
initscr();
clear();
noecho();
cbreak();
win = newwin( 20, 10, 5, 5 );
keypad(win, TRUE);

ok = true;
do
{

mvwprintw( win, 0, 0, “Bonjour");
c = wgetch(win);
switch(c)
{
case KEY_LEFT:
mvwprintw( win, 1, 0, "Flèche gauche appuyée");
break;
case 27:
ok = false;
break;
}
} while(ok);

endwin();

return 0;

}
